package com.wgchao.identityrightsmanagement.domain.organization.model;

import com.wgchao.identityrightsmanagement.domain.IdentifiedDomainObject;
import lombok.AllArgsConstructor;
import lombok.Getter;

/**
 * @ClassName: DepartmentOffice
 * @author: wgchao
 * @createTime: 2020/6/7 8:45 PM
 * @Description: 部门职位对应关系
 */
@Getter
@AllArgsConstructor
public class DepartmentOffice extends IdentifiedDomainObject {

    //唯一标识
    private String identify;

    //部门编号
    private String departmentCode;

    //职位编号
    private String officeCode;

    public DepartmentOffice(Long id, String identify, String departmentCode, String officeCode, Long version) {
        this.setId(id);
        this.identify = identify;
        this.departmentCode = departmentCode;
        this.officeCode = officeCode;
        this.setVersion(version);
    }

}
